package jzqb.bo;


import cnki.tpi.kbatis.annotation.Column;
import lombok.Data;

import java.util.Objects;

/**
 * 这个类是用户修改密码的传输类，单纯的用户密码的传输
 */

@Data
public class StandKnowleageBo  implements  Comparable<StandKnowleageBo>{
    @Column("key")
    private String key;
    @Column("value")
    private String value;

    public StandKnowleageBo(String key) {
        this.key = key;
    }

    public StandKnowleageBo(){
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        StandKnowleageBo that = (StandKnowleageBo) o;
        return Objects.equals(key, that.key);
    }

    @Override
    public int hashCode() {
        return Objects.hash(key);
    }

    @Override
    public int compareTo(StandKnowleageBo o) {
        return Integer.parseInt(o.getValue())-Integer.parseInt(this.getValue());
    }
}
